﻿using System.Linq;

namespace Storage.Core
{
	internal static class ByteArrayExtensions
	{
		public static bool IsEqual(this byte[] left, byte[] right)
		{
			if (left == null && right == null) return true;
			if (left == null || right == null || left.Length != right.Length) return false;
			return !left.Where((t, i) => t != right[i]).Any();
		}
	}
}
